import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';

@Injectable({
  providedIn: 'root'
})
export class SshService {

  constructor(private http: HttpClient) {}  
  
  validateLdap(id: number, username: string, password: string) {
    return this.http.get(`/api/admin/pc/${id}/websshaccount?username=${username}&password=${password}`).toPromise();
  }

}
